Figure 3-1
The Kali login screen
After logging in to Kali, you need to make sure it’s up to date. To access the
terminal, open the Applications menu, and in the search bar, enter terminal
emulator. Click the corresponding application.
Let’s use a few commands to update your software repositories and upgrade
your installed packages. In the terminal window, enter the following commands:
$ sudo apt update -y
$ sudo apt upgrade -y
$ sudo apt dist-upgrade -y
When you use sudo, Kali will ask for your password. This is the same
password you used to log in to the virtual machine, kali.
Newer Kali releases use the Z Shell (zsh) by default, so let’s ensure that bash
is the default shell for the kali user with this command:
$ sudo usermod --shell /bin/bash kali
Next, let's enable our new default shell by running the following command:
$ su - kali
Moving forward, we’ll use this Kali machine for all tasks we cover in the book.
We recommend keeping the terminal window open, as you’ll need it for additional
installations very soon.
Black Hat Bash (Early Access) © 2023 by Dolev Farhi and Nick Aleks